feat(a11y): add a skip-to-content link #112
Merged
+139
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
AppShell). It is off-screen until it receives keyboard focus, then appears top left in white on the dark text colour (#0f172a, contrast ≈ 17:1), independent of the brand colour.<main>hasid="main-content"andtabIndex={-1}, so activating the link moves keyboard focus into the content (the next Tab continues inside main). The link focuses main directly instead of adding#main-contentto the URL; thehrefremains as a fallback.main:focushas no outline, as it is a container focused only programmatically.Validation
npm run checkpasses (211 unit tests).mainwithout changing the URL, next Tab stays inside main. Other smoke tests pass (except the two macOS select tests fixed in test(e2e): make keyboard select tests pass on macOS #88).Notes
main#main-content; merge this first.AI usage
Written with Claude Code (Anthropic) to address a teammate's review of the final-delivery findings. Please review the diff as you would any other contribution.
Closes #102